import axios from '@/utils/request';

//统计数据
export function getStatistics() {
    return axios({
        url: "/user/echarts/web/getStatistics",
        method: "get"
    })
}

//获取浏览量最多的十篇文章
export function getTopTenArticle() {
    return axios({
        url: "/article/articles/web/getTopTenArticle",
        method: "get"
    })
}

//获取浏览量最多的十个问答
export function getTopTenProblem() {
    return axios({
        url: "/answer/problem/web/getTopTenProblem",
        method: "get"
    })
}

//按年份统计每月文章发布数量
export function countByMonth(year: string) {
    return axios({
        url: "/article/articles/web/countByMonth/" + year,
        method: "get"
    })
}

//获取使用量最多的十个标签
export function getTopTenLabel() {
    return axios({
        url: "/article/twoSort/web/getTopTenLabel",
        method: "get"
    })
}